Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Sat, 7 Jan 2023 12:07:32 +0000 (12:07 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Sat, 7 Jan 2023 12:07:32 +0000 (12:07 +0000)
commit28bcd0fdb1f81bf3d41691da64fd3013e65e9094
tree776b5def38ed612cb7430b09bbb359abc5cd92ce
parent92b6b330d4999ecc21248480b59802ff0b31b426
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas